/*
 * @Author: weisheng
 * @Date: 2023-04-17 12:51:22
 * @LastEditTime: 2023-04-20 15:01:53
 * @LastEditors: weisheng
 * @Description:
 * @FilePath: \uniapp-vue3-fant-ts\src\api\DemoApi.ts
 * 记得注释
 */
import http from '@/http/HttpClient'
import BaseResponse from '@/model/BaseResponse'
import Chanel from '@/model/Chanel'
import UserInfo from '@/model/UserInfo'
// 这里将API方法统一管理
export default class AddMerApi {
	static getMessage(data) : Promise<BaseResponse<Chanel[]>> {
		return http
			.server()
			.get(`/cityAdmin/admin/common_message/v2/message${data}`, {})
			.then((res) => {
				return res.data
			})
	}
	
	static sessionDel(data) : Promise<BaseResponse<Chanel[]>> {
		return http
			.server()
			.post(`/cityAdmin/mall/im/session/v1/del`,data, {})
			.then((res) => {
				return res.data
			})
	}
	
	static getImMsgList1(data) : Promise<BaseResponse<Chanel[]>> {
		return http
			.server()
			.post('/cityAdmin/mall/im/session/v1/list', data, {})
			.then((res) => {
				return res.data
			})
	}
	
	static getMessageList(data) : Promise<BaseResponse<Chanel[]>> {
		return http
			.server()
			.post('/cityUser/api/msg/v1/list', data, {})
			.then((res) => {
				return res.data
			})
	}
	
	static getMessageRecordList(data) : Promise<BaseResponse<Chanel[]>> {
		return http
			.server()
			.post('/cityAdmin/mall/im/session/v1/record', data, {})
			.then((res) => {
				return res.data
			})
	}
	
}